//
//  BabyTree.swift
//  eat_known
//
//  Created by 心情 on 2018/8/3.
//  Copyright © 2018年 心情. All rights reserved.
//

import Foundation

extension PhaseFoodState {
    static func babyTree(_ text: String) -> PhaseFoodState {
        switch text {
        case "1":
            return .OK
        case "2":
            return .Warn
        case "3":
            return .Forbidden
        default:
            return .Unknown
        }
    }
}
